package com.example.dziennikposilkow;

import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MiesoIPrzetworyMiesne extends DziennikMainActivity {
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        setContentView(R.layout.activity_mieso_i_przetwory_miesne);
        
        
        
        final Button button_baranina_cielecina_konina = (Button) findViewById(R.id.buttonBaraninaCielecinaKonina);
		button_baranina_cielecina_konina.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {

				String str = "BaraninaCielecinaKonina"; //Data you want to send        
				Intent intent = new Intent(MiesoIPrzetworyMiesne.this, TabelaProdukty.class);
				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
				v.getContext().startActivity(intent);
				
			}
			
		});
		
		   final Button button_wieprzowina = (Button) findViewById(R.id.buttonWieprzowina);
			button_wieprzowina.setOnClickListener(new View.OnClickListener() {
				public void onClick(View v) {

					String str = "Wieprzowina"; //Data you want to send        
					Intent intent = new Intent(MiesoIPrzetworyMiesne.this, TabelaProdukty.class);
					intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
					v.getContext().startActivity(intent);
					
				}
				
			});
			

			   final Button button_wolowina = (Button) findViewById(R.id.buttonWolowina);
				button_wolowina.setOnClickListener(new View.OnClickListener() {
					public void onClick(View v) {

						String str = "Wolowina"; //Data you want to send        
						Intent intent = new Intent(MiesoIPrzetworyMiesne.this, TabelaProdukty.class);
						intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
						v.getContext().startActivity(intent);
						
					}
					
				});
				
				 final Button button_podroby_miesne = (Button) findViewById(R.id.buttonPodrobyMiesne);
					button_podroby_miesne.setOnClickListener(new View.OnClickListener() {
						public void onClick(View v) {

							String str = "PodrobyMiesne"; //Data you want to send        
							Intent intent = new Intent(MiesoIPrzetworyMiesne.this, TabelaProdukty.class);
							intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
							v.getContext().startActivity(intent);
							
						}
						
					});
					
					 final Button button_ges_indyk_kaczka = (Button) findViewById(R.id.buttonGesIndykKaczka);
						button_ges_indyk_kaczka.setOnClickListener(new View.OnClickListener() {
							public void onClick(View v) {

								String str = "GesIndykKaczka"; //Data you want to send        
								Intent intent = new Intent(MiesoIPrzetworyMiesne.this, TabelaProdukty.class);
								intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
								v.getContext().startActivity(intent);
								
							}
							
						});
						
						 final Button button_kura_podroby_drobiowe = (Button) findViewById(R.id.buttonKuraPodrobyDrobiowe);
							button_kura_podroby_drobiowe.setOnClickListener(new View.OnClickListener() {
								public void onClick(View v) {

									String str = "KuraPodrobyDrobiowe"; //Data you want to send        
									Intent intent = new Intent(MiesoIPrzetworyMiesne.this, TabelaProdukty.class);
									intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
									v.getContext().startActivity(intent);
									
								}
								
							});
							
							final Button button_wedliny_wolowe_wieprzowe_mieszane = (Button) findViewById(R.id.buttonWedlinyWieprzoweWoloweMieszane);
							button_wedliny_wolowe_wieprzowe_mieszane.setOnClickListener(new View.OnClickListener() {
								public void onClick(View v) {

									String str = "WedlinyWieprzoweWoloweMieszane"; //Data you want to send        
									Intent intent = new Intent(MiesoIPrzetworyMiesne.this, TabelaProdukty.class);
									intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
									v.getContext().startActivity(intent);
									
								}
								
							});
							
							final Button button_wedliny_z_indyka_z_kurczaka = (Button) findViewById(R.id.buttonWedlinyZIndykaZKurczaka);
							button_wedliny_z_indyka_z_kurczaka.setOnClickListener(new View.OnClickListener() {
								public void onClick(View v) {

									String str = "WedlinyZIndykaZKurczaka"; //Data you want to send        
									Intent intent = new Intent(MiesoIPrzetworyMiesne.this, TabelaProdukty.class);
									intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
									v.getContext().startActivity(intent);
									
								}
								
							});
		
	}
}
